package com.sasis.model;
// Generated 2007-8-1 18:07:13 by Hibernate Tools 3.1.0.beta4

import java.sql.Date;
import java.sql.Timestamp;


/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="VIP_SERVICE_RECEIVECAR"
 *     
 */

public class VipServiceReceivecar extends com.sasis.model.BaseObject implements java.io.Serializable {


    // Fields    

    private Integer id;
    private Integer vipServiceSheetId;
    private Timestamp receivedCarTime;
    private String receivedCarLocator;
    private String receivedCarDriver;
    private String receivedCarLicense;
    private String receivedCarOrigin;
    private String receivedCarEnd;
    private String receivedCarLinkman;
    private Integer receivedCarOperator;
    private Timestamp receivedCarOperateDate;


    // Constructors

    /** default constructor */
    public VipServiceReceivecar() {
    }

    
    /** full constructor */
    public VipServiceReceivecar(Integer vipServiceSheetId, Timestamp receivedCarTime, String receivedCarLocator, String receivedCarDriver, String receivedCarLicense, String receivedCarOrigin, String receivedCarEnd, String receivedCarLinkman, Integer receivedCarOperator, Timestamp receivedCarOperateDate) {
        this.vipServiceSheetId = vipServiceSheetId;
        this.receivedCarTime = receivedCarTime;
        this.receivedCarLocator = receivedCarLocator;
        this.receivedCarDriver = receivedCarDriver;
        this.receivedCarLicense = receivedCarLicense;
        this.receivedCarOrigin = receivedCarOrigin;
        this.receivedCarEnd = receivedCarEnd;
        this.receivedCarLinkman = receivedCarLinkman;
        this.receivedCarOperator = receivedCarOperator;
        this.receivedCarOperateDate = receivedCarOperateDate;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="ID"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="VIP_SERVICE_SHEET_ID"
     *             length="22"
     *         
     */

    public Integer getVipServiceSheetId() {
        return this.vipServiceSheetId;
    }
    
    public void setVipServiceSheetId(Integer vipServiceSheetId) {
        this.vipServiceSheetId = vipServiceSheetId;
    }
    /**       
     *      *            @hibernate.property
     *             column="RECEIVED_CAR_TIME"
     *             length="7"
     *         
     */

    public Timestamp getReceivedCarTime() {
        return this.receivedCarTime;
    }
    
    public void setReceivedCarTime(Timestamp receivedCarTime) {
        this.receivedCarTime = receivedCarTime;
    }
    /**       
     *      *            @hibernate.property
     *             column="RECEIVED_CAR_LOCATOR"
     *             length="256"
     *         
     */

    public String getReceivedCarLocator() {
        return this.receivedCarLocator;
    }
    
    public void setReceivedCarLocator(String receivedCarLocator) {
        this.receivedCarLocator = receivedCarLocator;
    }
    /**       
     *      *            @hibernate.property
     *             column="RECEIVED_CAR_DRIVER"
     *             length="256"
     *         
     */

    public String getReceivedCarDriver() {
        return this.receivedCarDriver;
    }
    
    public void setReceivedCarDriver(String receivedCarDriver) {
        this.receivedCarDriver = receivedCarDriver;
    }
    /**       
     *      *            @hibernate.property
     *             column="RECEIVED_CAR_LICENSE"
     *             length="256"
     *         
     */

    public String getReceivedCarLicense() {
        return this.receivedCarLicense;
    }
    
    public void setReceivedCarLicense(String receivedCarLicense) {
        this.receivedCarLicense = receivedCarLicense;
    }
    /**       
     *      *            @hibernate.property
     *             column="RECEIVED_CAR_ORIGIN"
     *             length="256"
     *         
     */

    public String getReceivedCarOrigin() {
        return this.receivedCarOrigin;
    }
    
    public void setReceivedCarOrigin(String receivedCarOrigin) {
        this.receivedCarOrigin = receivedCarOrigin;
    }
    /**       
     *      *            @hibernate.property
     *             column="RECEIVED_CAR_END"
     *             length="256"
     *         
     */

    public String getReceivedCarEnd() {
        return this.receivedCarEnd;
    }
    
    public void setReceivedCarEnd(String receivedCarEnd) {
        this.receivedCarEnd = receivedCarEnd;
    }
    /**       
     *      *            @hibernate.property
     *             column="RECEIVED_CAR_LINKMAN"
     *             length="256"
     *         
     */

    public String getReceivedCarLinkman() {
        return this.receivedCarLinkman;
    }
    
    public void setReceivedCarLinkman(String receivedCarLinkman) {
        this.receivedCarLinkman = receivedCarLinkman;
    }
    /**       
     *      *            @hibernate.property
     *             column="RECEIVED_CAR_OPERATOR"
     *             length="22"
     *         
     */

    public Integer getReceivedCarOperator() {
        return this.receivedCarOperator;
    }
    
    public void setReceivedCarOperator(Integer receivedCarOperator) {
        this.receivedCarOperator = receivedCarOperator;
    }
    /**       
     *      *            @hibernate.property
     *             column="RECEIVED_CAR_OPERATE_DATE"
     *             length="7"
     *         
     */

    public Timestamp getReceivedCarOperateDate() {
        return this.receivedCarOperateDate;
    }
    
    public void setReceivedCarOperateDate(Timestamp receivedCarOperateDate) {
        this.receivedCarOperateDate = receivedCarOperateDate;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("vipServiceSheetId").append("='").append(getVipServiceSheetId()).append("' ");			
      buffer.append("receivedCarTime").append("='").append(getReceivedCarTime()).append("' ");			
      buffer.append("receivedCarLocator").append("='").append(getReceivedCarLocator()).append("' ");			
      buffer.append("receivedCarDriver").append("='").append(getReceivedCarDriver()).append("' ");			
      buffer.append("receivedCarLicense").append("='").append(getReceivedCarLicense()).append("' ");			
      buffer.append("receivedCarOrigin").append("='").append(getReceivedCarOrigin()).append("' ");			
      buffer.append("receivedCarEnd").append("='").append(getReceivedCarEnd()).append("' ");			
      buffer.append("receivedCarLinkman").append("='").append(getReceivedCarLinkman()).append("' ");			
      buffer.append("receivedCarOperator").append("='").append(getReceivedCarOperator()).append("' ");			
      buffer.append("receivedCarOperateDate").append("='").append(getReceivedCarOperateDate()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof VipServiceReceivecar) ) return false;
		 VipServiceReceivecar castOther = ( VipServiceReceivecar ) other; 
         
		 return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
 && ( (this.getVipServiceSheetId()==castOther.getVipServiceSheetId()) || ( this.getVipServiceSheetId()!=null && castOther.getVipServiceSheetId()!=null && this.getVipServiceSheetId().equals(castOther.getVipServiceSheetId()) ) )
 && ( (this.getReceivedCarTime()==castOther.getReceivedCarTime()) || ( this.getReceivedCarTime()!=null && castOther.getReceivedCarTime()!=null && this.getReceivedCarTime().equals(castOther.getReceivedCarTime()) ) )
 && ( (this.getReceivedCarLocator()==castOther.getReceivedCarLocator()) || ( this.getReceivedCarLocator()!=null && castOther.getReceivedCarLocator()!=null && this.getReceivedCarLocator().equals(castOther.getReceivedCarLocator()) ) )
 && ( (this.getReceivedCarDriver()==castOther.getReceivedCarDriver()) || ( this.getReceivedCarDriver()!=null && castOther.getReceivedCarDriver()!=null && this.getReceivedCarDriver().equals(castOther.getReceivedCarDriver()) ) )
 && ( (this.getReceivedCarLicense()==castOther.getReceivedCarLicense()) || ( this.getReceivedCarLicense()!=null && castOther.getReceivedCarLicense()!=null && this.getReceivedCarLicense().equals(castOther.getReceivedCarLicense()) ) )
 && ( (this.getReceivedCarOrigin()==castOther.getReceivedCarOrigin()) || ( this.getReceivedCarOrigin()!=null && castOther.getReceivedCarOrigin()!=null && this.getReceivedCarOrigin().equals(castOther.getReceivedCarOrigin()) ) )
 && ( (this.getReceivedCarEnd()==castOther.getReceivedCarEnd()) || ( this.getReceivedCarEnd()!=null && castOther.getReceivedCarEnd()!=null && this.getReceivedCarEnd().equals(castOther.getReceivedCarEnd()) ) )
 && ( (this.getReceivedCarLinkman()==castOther.getReceivedCarLinkman()) || ( this.getReceivedCarLinkman()!=null && castOther.getReceivedCarLinkman()!=null && this.getReceivedCarLinkman().equals(castOther.getReceivedCarLinkman()) ) )
 && ( (this.getReceivedCarOperator()==castOther.getReceivedCarOperator()) || ( this.getReceivedCarOperator()!=null && castOther.getReceivedCarOperator()!=null && this.getReceivedCarOperator().equals(castOther.getReceivedCarOperator()) ) )
 && ( (this.getReceivedCarOperateDate()==castOther.getReceivedCarOperateDate()) || ( this.getReceivedCarOperateDate()!=null && castOther.getReceivedCarOperateDate()!=null && this.getReceivedCarOperateDate().equals(castOther.getReceivedCarOperateDate()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
         result = 37 * result + ( getVipServiceSheetId() == null ? 0 : this.getVipServiceSheetId().hashCode() );
         result = 37 * result + ( getReceivedCarTime() == null ? 0 : this.getReceivedCarTime().hashCode() );
         result = 37 * result + ( getReceivedCarLocator() == null ? 0 : this.getReceivedCarLocator().hashCode() );
         result = 37 * result + ( getReceivedCarDriver() == null ? 0 : this.getReceivedCarDriver().hashCode() );
         result = 37 * result + ( getReceivedCarLicense() == null ? 0 : this.getReceivedCarLicense().hashCode() );
         result = 37 * result + ( getReceivedCarOrigin() == null ? 0 : this.getReceivedCarOrigin().hashCode() );
         result = 37 * result + ( getReceivedCarEnd() == null ? 0 : this.getReceivedCarEnd().hashCode() );
         result = 37 * result + ( getReceivedCarLinkman() == null ? 0 : this.getReceivedCarLinkman().hashCode() );
         result = 37 * result + ( getReceivedCarOperator() == null ? 0 : this.getReceivedCarOperator().hashCode() );
         result = 37 * result + ( getReceivedCarOperateDate() == null ? 0 : this.getReceivedCarOperateDate().hashCode() );
         return result;
   }   





}
